import { post, put, get } from '@/utils/hettpUtils/httpRequest'

export const siteSettingColumns = [
    {
        title: "名称",
        dataIndex: "name",
    },
    {
        width: 200,
		ellipsis: true,
        title: "值",
        dataIndex: "value",
    },
    {
        align: 'center',
        title: "创建人",
        dataIndex: "createUser",
    },
    {
        align: 'center',
        title: "创建时间",
        dataIndex: "createTime",
        sorter: true,
    },
    {
        align: 'center',
        title: "状态",
        dataIndex: "status",
        scopedSlots: { customRender: "status" },
    },
    {
        align: 'center',
		ellipsis: true,
        title: "操作",
        dataIndex: "action",
        scopedSlots: { customRender: "action" },
    },
];

export const addSiteSetting = (parameter) => post('api/sysSiteSetting/addSiteSetting', parameter)
export const deleteSiteSetting = (parameter) => post('api/sysSiteSetting/deleteSiteSetting', parameter)
export const updateSiteSetting = (parameter) => put('api/sysSiteSetting/updateSiteSetting', parameter)
export const getSiteSetting = (parameter) => get('api/sysSiteSetting/getSiteSetting', parameter)
export const querySiteSetting = (parameter) => get('api/sysSiteSetting/querySiteSetting', parameter)

